/**  
 * 文 件 名: IMenuDAO.java  
 * 描    述：   
 * 版    权：Copyright (c)20012-2012 tongzhou All Rights Reserved.
 * 公    司: 同舟 
 * 作    者：彭定雄                     
 * 版    本: 1.0  
 * 创建时间: 2012-10-27
 *  
 * 修改历史：  
 * 时间                             作者                       版本                        描述  
 * ------------------------------------------------------------------  
 * 2012-10-27        彭定雄                1.0          1.0 Version  
 */         

/**
 * 
 */
package com.tongzhou.system.menu.dao;

import java.util.List;

import com.tongzhou.db.exception.DBException;
import com.tongzhou.system.menu.model.Menu;
import com.tongzhou.system.menu.model.SearchMenuCondition;

public interface IMenuDAO {
	public void addMenu(Menu menu) throws DBException;
	public List<Menu> listMenu(SearchMenuCondition condition) throws DBException;
	public void deleteMenu(Menu menu) throws DBException;
	public void updateMenu(Menu menu,Menu oldMenu) throws DBException;
	public List<Menu> getMenuList(Menu menu) throws DBException;
	public List<Menu> getMenuListByParentID(Menu menu) throws DBException;
	public List<Menu> checkMenuByName(Menu menu) throws DBException;
	
	public Menu getMenuById(Menu menu) throws DBException;
	public Menu getBeforeMenuById(Menu menu) throws DBException;
	public List<Menu> getSortMenuList(Menu menu) throws DBException;
	
	public List<Menu> listMenu() throws DBException;
	public List<Menu> listMenu2() throws DBException;
	public List<Menu> getSubMenuList(Menu menu) throws DBException;
	public List<Menu> getSubMenuList2(Menu menu) throws DBException;
}
